home *** CD-ROM | disk | FTP | other *** search
- Path: news.ov.com!news
- From: glenn@ov.com (Fletcher.Glenn@ov.com)
- Newsgroups: comp.lang.c
- Subject: Re: Can main() function be called?
- Date: 5 Feb 1996 23:29:30 GMT
- Organization: OpenVision
- Message-ID: <4f63sq$3ml@spanky.pls.ov.com>
- References: <4f1mv0$2fd@cloner4.netcom.com>
- Reply-To: glenn@ov.com
- NNTP-Posting-Host: foghorn.pls.ov.com
-
- In article 2fd@cloner4.netcom.com, rozen@ix.netcom.com (Mike Rosenblyum ) writes:
- >I think that it cannot be done, I see no reasonalbe way how main()
- >could be called more than once.
- >
- >
- > What is your thoughts on this?
- >
- >
-
- main is a function like any other. *All* functions can be called recursively.
- The gotcha is that when you return from a recursive call to main, you end up
- still in your program until you return from the top level main call (from the
- system).
- Fletcher.Glenn@ov.com
-
-
-